import Vue from 'vue';
import Router from 'vue-router';
import IndexView from '@/views/IndexView';
import NewsView from '@/views/NewsView';
import EOSView from '@/views/EOSView';
import EthView from '@/views/EthView';
import IostView from '@/views/IostView';
import OntView from '@/views/OntView';
import TrxView from '@/views/TrxView';
import ShareView from '@/views/ShareView';
import AirdropView from '@/views/AirdropView';
import EmpireView from '@/views/EmpireView';
import AdviceView from '@/views/AdviceView';
import QuestionView from '@/views/QuestionView';
import HistoryView from '@/views/HistoryView';
import MyInfoView from '@/views/MyInfoView';
import CpuView from '@/views/CpuView';
import XmasView from '@/views/XmasView';
import View2019 from '@/views/View2019';

Vue.use(Router);

export default new Router({
  mode: 'history',
  scrollBehavior: () => ({ y: 0 }),
  routes: [
    {
      name: 'Home',
      path: '/',
      component: IndexView,
    },
    {
      name: '2019',
      path: '/2019',
      component: View2019,
    },
    {
      name: 'cpu',
      path: '/cpu',
      component: CpuView,
    },
    {
      name: 'xmas',
      path: '/xmas',
      component: XmasView,
    },
    {
      name: 'News',
      path: '/News',
      component: NewsView,
    },
    {
      name: 'EOS',
      path: '/EOS',
      component: EOSView,
    },
    {
      name: 'Trx',
      path: '/Trx',
      component: TrxView,
    },
    {
      name: 'Eth',
      path: '/Eth',
      component: EthView,
    },
    {
      name: 'Iost',
      path: '/Iost',
      component: IostView,
    },
    {
      name: 'Ont',
      path: '/Ont',
      component: OntView,
    },
    {
      name: 'Share',
      path: '/Share',
      component: ShareView,
    },
    {
      name: 'Airdrop',
      path: '/Airdrop',
      component: AirdropView,
    },
    {
      name: 'MyInfo',
      path: '/MyInfo',
      component: MyInfoView,
    },
    {
      name: 'Question',
      path: '/Question',
      component: QuestionView,
    },
    {
      name: 'Advice',
      path: '/Advice',
      component: AdviceView,
    },
    {
      name: 'Empire',
      path: '/Empire',
      component: EmpireView,
    },
    {
      name: 'History',
      path: '/History',
      component: HistoryView,
    },
    {
      name: 'Old',
      path: '/Old',
      component: IndexView,
    },
  ],
});
